﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="module-list.aspx.cs" Inherits="SmartSpace.WebApp._console.core.module_list" MasterPageFile="~/_console/_console.Master" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolderHead" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolderMenu" runat="server">
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="ContentPlaceHolderTitle" runat="server">
    模块列表
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolderToolbar" runat="server">
    <asp:HyperLink ID="_ctlLinkUpload" runat="server" NavigateUrl="~/_console/core/module-upload.aspx">上传模块</asp:HyperLink>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolderContent" runat="server">
    <div class="box">
        <h2>已发布的模块列表</h2>
        <div class="block">
            <table class="list">
                <asp:Repeater ID="_ctlList" runat="server">
                    <HeaderTemplate>
                        <thead>
                            <tr>
                                <th>-
                                </th>
                                <th>Caption
                                </th>
                                <th>Code
                                </th>
                                <th>Name
                                </th>
                                <th>Package
                                </th>
                                <th>Version
                                </th>
                                <th>Type
                                </th>
                            </tr>
                        </thead>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <tr>
                            <td>
                                <span id="_ctlLabel" runat="server" visible='<%# IsSelected(Eval("Id")) %>'>已选择</span>
                                <a id="_ctlLink" href='<%# Eval("Id","?id={0}") %>' runat="server" visible='<%# !IsSelected(Eval("Id")) %>'>选择</a>
                            </td>
                            <td>
                                <%# Eval("Caption") %>
                            </td>
                            <td>
                                <%# Eval("Code") %>
                            </td>
                            <td>
                                <%# Eval("Name") %>
                            </td>
                            <td>
                                <%# Eval("Package") %>
                            </td>
                            <td>
                                <%# Eval("Version") %>
                            </td>
                            <td>
                                <%# Eval("Type") %>
                            </td>
                        </tr>
                    </ItemTemplate>
                    <FooterTemplate>
                    </FooterTemplate>
                </asp:Repeater>
            </table>
        </div>
    </div>
    <div class="box">
        <h2>视图列表</h2>
        <div class="block">
            <table class="list">
                <thead>
                    <tr>
                        <th>标题
                        </th>
                        <th>名称
                        </th>
                    </tr>
                </thead>
                <asp:Repeater ID="_ctlListView" runat="server">
                    <HeaderTemplate>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <tr>
                            <td>
                                <%# Eval("Caption") %></td>
                            <td>
                                <%# Eval("Code") %>
                            </td>
                        </tr>
                    </ItemTemplate>
                    <FooterTemplate>
                    </FooterTemplate>
                </asp:Repeater>

            </table>
        </div>
    </div>
</asp:Content>
